#include <iostream>

using namespace std;

class Base {};
class Drive : public Base {};

int main(void)
{
	try {
		throw Drive();
	} catch (int e) {
		cout << "exception int " << endl;
	} catch (const char *e) {
		cout << "exception const char *" << endl;
	} catch (Base &e) {
		cout << "Base exception" << endl;
	} catch (Drive &e) {
		cout << "Drive exception" << endl;
	}

	return 0;
}

